<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterAgentAddShowKuaiZhan extends Migrator
{
    public function up()
    {

        $this->table('agent')
            ->addColumn('link_type', 'integer', ['limit' => 1, 'default' => 2, 'comment' => '是否展示快站链接1：快站2：惠充'])
            ->update();

    }

    public function down()
    {
        $this->table('agent')->removeColumn('link_type');
    }
}
